package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class DaoSchoolMaterialArticleSaveAdminDTO {

    @ApiModelProperty(value = "素材名称")
    @NotBlank(message = "素材名称不可以为空")
    @Length(min = 1, max = 10, message = "素材名长度为1-10个字符")
    private String name;

    @ApiModelProperty(value = "转跳url")
    @NotBlank(message = "转跳url不可以为空")
    @Length(min = 1, max = 200, message = "url长度为1-200个字符")
    private String url;

    @ApiModelProperty(value = "图标url")
    @NotBlank(message = "图标url不可以为空")
    private String iconUrl;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
